# $OpenBSD: Makefile,v 1.7 2015/10/03 12:08:31 robert Exp $

COMMENT =		marathon / alephone map editor
#BROKEN =	because mono

V =			211
DISTNAME =		weland-r${V}-src
PKGNAME =		weland-${V}
REVISION =		1

CATEGORIES =		games

HOMEPAGE =		http://sourceforge.net/projects/weland/

# GPL v2-only
PERMIT_PACKAGE_CDROM =	Yes

MASTER_SITES =		${MASTER_SITE_SOURCEFORGE:=weland/}
EXTRACT_SUFX =		.zip

MODULES =		lang/mono
MODMONO_GMCS_COMPAT =	Yes

BUILD_DEPENDS =		${RUN_DEPENDS}
RUN_DEPENDS =		x11/mono-gtk2

WRKDIST =		${WRKDIR}/weland

pre-configure:
	@cp ${FILESDIR}/weland.sh ${WRKSRC}
	@${SUBST_CMD} ${WRKSRC}/weland.sh

do-install:
	${INSTALL_DATA_DIR} ${PREFIX}/libexec/weland/
	${INSTALL_SCRIPT} ${WRKSRC}/Weland.exe ${PREFIX}/libexec/weland/
	${INSTALL_SCRIPT} ${WRKSRC}/weland.sh ${PREFIX}/bin/weland

NO_TEST =		Yes

.include <bsd.port.mk>
